/**
 * Created by chemeng on 2017/3/30.
 */
var app = new Vue({
    el: '#registerForm',
    data: {
        user: {
            username: '',
            password: ''
        }
    },
    methods: {
        login: function () {
            debugger;
            this.$http.post('/rest/login', app.user).then(function (response) {
                //浏览器支持sessionStorage
                if (window.sessionStorage) {
                    var sessionStorage = window.sessionStorage;
                    if (sessionStorage.getItem('returnPage')) {

                    }
                }
            });
        }
    }
});